{
<?php if ( $this->type == "exception" ){ ?>
	
	<?php echo $this->exception ?>,
	
<?php } else if ( $this->type == "rpc" ) { ?>

	"tid" : <?php echo $this->tid; ?>,
	"action" : "<?php echo $this->action; ?>",
	"method" : "<?php echo $this->method; ?>",
	"result" : <?php if ( isset( $this->isForm ) ){ if ( isset($this->result) ) { echo $this->result . ',
	'; } else { ?>{
		<?php if ( isset( $this->data ) ){ ?>"data" : <?php echo $this->data; ?>,<?php } else { ?>"data" : {},
<?php } ?>
<?php if ( isset( $this->errors ) ){ ?>		"errors" : <?php echo $this->errors; ?>,
<?php } ?>
<?php if ( isset( $this->debug_formPacket ) ){ ?>		"debug_formPacket" : <?php echo $this->debug_formPacket; ?>,
<?php } ?>
<?php if ( isset( $this->total ) ){ ?>		"total" : <?php echo $this->total; ?>,
<?php } ?>
<?php if ( isset( $this->message ) ){ ?>		"message" : "<?php echo $this->message; ?>",
<?php } ?>

		"success" : <?php echo $this->success; ?>

	},
<?php } } else { ?>
	<?php echo $this->result; ?>
	<?php }?>
<?php } else if ( $this->type == "event" ) { ?>
	"name" : "<?php echo $this->name; ?>",
	"data" : <?php echo $this->data; ?>,
<?php } ?>
	"type" : "<?php echo $this->type; ?>"
}